home *** CD-ROM | disk | FTP | other *** search
- # Makefile for Lattice make with SAS/C V5.10b
-
- DISTFILE = ADtoHT2_0.lha
-
- EXEC = ADtoHT
-
- SOURCES = AdditionalDocs.c Autodocs.c AVL.c File.c FormatNode.c Includes.c main.c ProcessDir.c
- HEADERS = AdditionalDocs.h Autodocs.h AVL.h File.h FormatNode.h Includes.h main.h ProcessDir.h
- LIB = MyLib1_0.lha
-
- DIGEST = md5.Digest
-
- # Stupid command line restrictions drive me crazy
- DISTFILES1 = $(EXEC) $(SOURCES) lmkfile Makefile
- DISTFILES2 = $(HEADERS) ADtoHT.guide MyLib.lha
- DISTFILES = $(DISTFILES1) $(DISTFILES2)
-
- CC = lc
- CFLAGS = -v -ms -cfs -iINCLUDE:MyLib/
-
- OBJS = main.o File.o Includes.o ProcessDir.o AVL.o Autodocs.o AdditionalDocs.o FormatNode.o
-
- all: ADtoHT
-
- .c.o:
- $(CC) $(CFLAGS) $*
-
- MyLib.lha: $(LIB)
- lha -a e $(LIB) $@
-
- ADtoHT: $(OBJS)
- blink TO ADtoHT LIB SAS5bs/MyLib.lib LIB:amiga.lib LIB:lc.lib SC SD NOICONS <WITH <
- FROM SAS5bs/MyStartup.o $(OBJS)
- <
-
- $(DIGEST): $(DISTFILES)
- pgp -kxa stieber stieber
- echo >.$(DIGEST) "^^^ Anything above this line has been hacked! ^^^*n"
- md5sum >>.$(DIGEST) -b $(DISTFILES1)
- md5sum >>.$(DIGEST) -b $(DISTFILES2)
- join .$(DIGEST) stieber.asc TO $(DIGEST)
- Delete >NIL: .$(DIGEST) stieber.asc
- pgp <>KCON:0/16/640/150/PGP -sat +clearsig=on $(DIGEST)
- Delete >NIL: $(DIGEST)
- Rename >NIL: $(DIGEST).asc $(DIGEST)
- Protect $(DIGEST) rwd # AmigaOS is stupid
-
- clean:
- -Delete $(OBJS) $(EXEC) $(LIB) $(DISTFILE) $(DIGEST) .$(DIGEST) $(DIGEST).asc MyLib.lha
-
- dist: $(DISTFILE)
-
- $(DISTFILE): $(DIGEST)
- -Delete >NIL: $(DISTFILE)
- lha -AZar a $(DISTFILE) <@<
- $(DISTFILES) $(DIGEST)
- <
-
- # Dependencies
-
- main.o: main.c main.h AVL.h File.h Includes.h ProcessDir.h Autodocs.h AdditionalDocs.h
- ProcessDir.o: ProcessDir.c main.h AVL.h ProcessDir.h
- File.o: File.c main.h AVL.h File.h
- Autodocs.o: Autodocs.c Includes.h main.h AVL.h File.h Autodocs.h FormatNode.h AdditionalDocs.h
- AVL.o: AVL.c AVL.h
- Includes.o: Includes.c main.h AVL.h File.h ProcessDir.h Includes.h Autodocs.h FormatNode.h AdditionalDocs.h
- AdditionalDocs.o: AdditionalDocs.c main.h AVL.h File.h AdditionalDocs.h Includes.h Autodocs.h FormatNode.h
- FormatNode.o: FormatNode.c main.h AVL.h File.h FormatNode.h
-